package com.cdtu.dao;

import com.cdtu.entity.News;
import com.cdtu.entity.NewsColumn;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface NewsMapper extends BaseMapper<News> {
    List<News> selectByXml(@Param("columnId") Integer columnId, @Param("source") String source,@Param("newsDate") Date newsDate);

    List<Map<String,Object>> selectYearCount();

    List<String> selectSourceCount();

    List<Map<String,Object>> selectColumnCount();

    Map<String, Object> selectByNewsId(Integer newsId);

    List<NewsColumn> selectColumnName();

}
